import sys

f = open(sys.argv[1])
count = 0
matched = 0
mismatched = 0
for l in f:
    l = l.strip()
    p = l.split()
    real = int(p[2])
    if real == 1 and count > 52380:
        print count , matched , mismatched
        if p[3] == "NaN" or float(p[3]) <= 0 :
            mismatched += 1
        else:
            matched += 1
    count += 1
print count , matched , mismatched
f.close()
